#set(title="用户中心")
#@layout()

#define body()
<div style="height: 50px"></div>
<div class="user-container">
    <div class="info-container">
        <form class="layui-form" action="">

            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="text" name="username" autocomplete="off" value="#(user.username)" readonly
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-block">
                    <input type="text" name="pname" autocomplete="off" value="#(user.pname)"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input type="radio" name="gender" value="男" title="男" #(male)>
                    <input type="radio" name="gender" value="女" title="女" #(female)>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">电话</label>
                <div class="layui-input-block">
                    <input type="text" name="phone" autocomplete="off" value="#(user.phone)"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">公司</label>
                <div class="layui-input-block">
                    <input type="text" name="company" autocomplete="off" value="#(user.company)"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">地址</label>
                <div class="layui-input-block">
                    <input type="text" name="address" autocomplete="off" value="#(user.address)"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="editSubmit">立即提交</button>
                </div>
            </div>

        </form>
    </div>

    <div class="avator-container">
        <img src="/img/userimg/#(user.avator)" class="avator">
        <input name="avator" class="layui-upload-file" type="file">
    </div>

</div>
#end

#define css()
<link rel="stylesheet" href="/assets/css/user.css">
#end


#define js()
<script src="/assets/js/user.js"></script>
#end